<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>发布个人活动</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/external/jquery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-validation-1.13.1/dist/jquery.validate.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-validation-1.13.1/demo/css/screen.css">
  </head>
  
  <body>
  		 <div id="head-search">
   	 		<i class="home-path"></i>
   	 		<span class="path-font">活动管理 &nbsp;&nbsp;>>&nbsp;&nbsp;发布个人活动</span>
   		</div>
   	<div class="mainbody">
   		<div>
   			<form id="indiActForm" name="indiActForm" action="<%=basePath%>indiActAction" method="post">
   				<div class="divrow">主题：<input id="indiTheme" name="indiTheme" style="width:161px;"/> </div>
   				<div class="divrow">内容：<textarea id="indiContent" name="indiContent" rows="5" ></textarea> </div>
   				<div class="divrow">日期：<input id="indiDate" name="indiDate" style="width:161px;"/> </div>
   				<div class="divrow">备注：<textarea id="indiAddition" name="indiAddition" rows="5"></textarea> </div>
   				<div class="divrow">
   					<button id="saveActBtn" class="wong-button-text-ui wong-button-blue" onclick="javascrit:$('#indiActForm').submit();">
   						<span class="wong-ui-icon wong-icon-save"></span>
   						<span >发布个人活动</span>
   					</button>
   				</div>	
   			</form>
   		</div>
   	</div>
    
  </body>
  <script>
  		$(function(){
  			
  			$("#indiActForm").validate({
			 	rules:{
			 		indiTheme:"required",
			 		indiContent:"required",
			 		indiDate:"required",
			 		indiAddition:"required",			 		
			 	},
			 	messages:{
			 		indiTheme:"请输入个人活动主题",
			 		indiContent:"请输入个人活动内容",
			 		indiDate:"请输入活动日期",
			 		indiAddition:"请添加备注",	
			 		}	
			 });
  		});
  </script>
</html>
